package com.ruoyi.consumer.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 支付订单对象 c_order
 * 
 * @author ruoyi
 * @date 2023-11-19
 */
public class COrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** orderid编号 */
    private Integer orderId;

    /** 公司id */
    @Excel(name = "公司id")
    private Integer companyId;

    /** 实时业务订单id */
    @Excel(name = "实时业务订单id")
    private Integer deviceOrderId;

    /** 来源用户id */
    @Excel(name = "来源用户id")
    private Integer targetUserId;

    /** 加注量 */
    @Excel(name = "加注量")
    private Long orderAmount;

    /** 下单金额 */
    @Excel(name = "下单金额")
    private Integer orderMoney;

    /** 实付金额 */
    @Excel(name = "实付金额")
    private Integer orderPay;

    /** 退款金额 */
    @Excel(name = "退款金额")
    private Integer orderRefund;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNum;

    /** 值,2下单业务类型,1充 */
    @Excel(name = "值,2下单业务类型,1充")
    private Integer dealType;

    /** 退款订单号 */
    @Excel(name = "退款订单号")
    private String orderRefundNum;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Integer isDelete;

    /** 状态，0：已支付，1：已退款 */
    @Excel(name = "状态，0：已支付，1：已退款")
    private Integer orderStatus;

    /** 变动量 */
    @Excel(name = "变动量")
    private Integer dealAmount;

    public void setOrderId(Integer orderId) 
    {
        this.orderId = orderId;
    }

    public Integer getOrderId() 
    {
        return orderId;
    }
    public void setCompanyId(Integer companyId) 
    {
        this.companyId = companyId;
    }

    public Integer getCompanyId() 
    {
        return companyId;
    }
    public void setDeviceOrderId(Integer deviceOrderId) 
    {
        this.deviceOrderId = deviceOrderId;
    }

    public Integer getDeviceOrderId() 
    {
        return deviceOrderId;
    }
    public void setTargetUserId(Integer targetUserId) 
    {
        this.targetUserId = targetUserId;
    }

    public Integer getTargetUserId() 
    {
        return targetUserId;
    }
    public void setOrderAmount(Long orderAmount) 
    {
        this.orderAmount = orderAmount;
    }

    public Long getOrderAmount() 
    {
        return orderAmount;
    }
    public void setOrderMoney(Integer orderMoney) 
    {
        this.orderMoney = orderMoney;
    }

    public Integer getOrderMoney() 
    {
        return orderMoney;
    }
    public void setOrderPay(Integer orderPay) 
    {
        this.orderPay = orderPay;
    }

    public Integer getOrderPay() 
    {
        return orderPay;
    }
    public void setOrderRefund(Integer orderRefund) 
    {
        this.orderRefund = orderRefund;
    }

    public Integer getOrderRefund() 
    {
        return orderRefund;
    }
    public void setOrderNum(String orderNum) 
    {
        this.orderNum = orderNum;
    }

    public String getOrderNum() 
    {
        return orderNum;
    }
    public void setDealType(Integer dealType) 
    {
        this.dealType = dealType;
    }

    public Integer getDealType() 
    {
        return dealType;
    }
    public void setOrderRefundNum(String orderRefundNum) 
    {
        this.orderRefundNum = orderRefundNum;
    }

    public String getOrderRefundNum() 
    {
        return orderRefundNum;
    }
    public void setIsDelete(Integer isDelete) 
    {
        this.isDelete = isDelete;
    }

    public Integer getIsDelete() 
    {
        return isDelete;
    }
    public void setOrderStatus(Integer orderStatus) 
    {
        this.orderStatus = orderStatus;
    }

    public Integer getOrderStatus() 
    {
        return orderStatus;
    }
    public void setDealAmount(Integer dealAmount) 
    {
        this.dealAmount = dealAmount;
    }

    public Integer getDealAmount() 
    {
        return dealAmount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("companyId", getCompanyId())
            .append("deviceOrderId", getDeviceOrderId())
            .append("targetUserId", getTargetUserId())
            .append("orderAmount", getOrderAmount())
            .append("orderMoney", getOrderMoney())
            .append("orderPay", getOrderPay())
            .append("orderRefund", getOrderRefund())
            .append("orderNum", getOrderNum())
            .append("dealType", getDealType())
            .append("orderRefundNum", getOrderRefundNum())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("isDelete", getIsDelete())
            .append("orderStatus", getOrderStatus())
            .append("dealAmount", getDealAmount())
            .toString();
    }
}
